package io.arukas;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@SpringBootApplication
public class SpringBootK8sApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootK8sApplication.class, args);
    }

    @GetMapping("hello")
    public Map<String, Object> hello() {

        Map<String, Object> data = new HashMap<>();
        data.put("x", "xxx");

        data.put("y", 300);
        return data;
    }
}
